package com.atguigu.gulimall.search.searchEnum;


import com.google.common.collect.Lists;

import java.util.List;

public enum SearchParamEnum {

    brand_agg(Lists.newArrayList("brand_agg:brandId:10", "brand_name_agg:brandName.keyword:1", "brand_img_agg:brandImg.keyword:1")),
    catalog_agg(Lists.newArrayList("catalog_agg:catalogId:20","catalog_name_agg:catalogName.keyword:1")),
    attr_id_agg(Lists.newArrayList("attr_id_agg:attrs.attrId:10", "attr_name_agg:attrs.attrName.keyword:1", "attr_value_agg:attrs.attrValue:50"));
    private List<String> fieldList;

    SearchParamEnum(List<String> fieldList) {
        this.fieldList = fieldList;
    }

    public List<String> getField() {
        return fieldList;
    }
}
